/*
 * @Copyright: 2025 Copyright (C) AMCAX, All rights reserved.
 * @Author: Zhang
 * @Date: 2025/6/3 14:59
 * @LastEditTime: 2025/6/3 14:59
 * @LastEditors: Zhang
 * @Description:
 */

import { ICommandLayout, TCmdGroup } from '@/components/types';
import { FeatureManager } from '@amcax/base';
import { CmdButton, CmdSplitButton } from '@/components/CmdBar/CmdButtons';
import { Flex } from 'antd';
import {cmdCurvedSurface, cmdCurveLine } from '@/commands/featureInfo'
const EditLayout = () => {
  return (
    <Flex>
      {FeatureManager.isFeatureEnabled('cmd-curved-surface') && (
        <CmdButton cmd={cmdCurvedSurface} />
      )}
      {FeatureManager.isFeatureEnabled('cmd-curve-line') && (
          <CmdButton cmd={cmdCurveLine} />
      )}
    </Flex>
  );
};

const cmdGroups: TCmdGroup[] = [
  {
    id: 'draw',
    label: '编辑',
    layout: <EditLayout />,
    visible: true,
  },
];

export const featureRecognition: ICommandLayout = {
  id: 'featureRecognition',
  label: '特征识别',
  cmds: cmdGroups,
};
